<template>
  <div class="header-box">
    <div class="goBack">
        <van-icon name="arrow-left" size="20" color="#999" @click="goBack()"/>
    </div>
     <h3>{{title}}</h3>
  </div>
</template>

<script>
import arrow from '@/assets/images/arrow.png'
export default {
    props:{
        title:{
            type:String,
            default:'游客公共服务平台'
        }
    },
    name:'Header',
    data(){
        return{
        }
    },
    methods:{
        goBack(){
          window.history.go(-1)
        }
    }
}
</script>

<style lang="less" scope>
.header-box{
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height: 88/7.5vw;
    box-sizing: border-box;
    text-align: center;
    z-index: 99;
    background-color: #fff;
    border-bottom: 1px solid #f2f2f2;
    h3{
        color: #333;
    font-size: 36/7.5vw;
    font-family: PingFang SC;
    line-height: 88/7.5vw;
    margin:0;
    }
    
   .goBack{
       position: absolute;
       left: 20/7.5vw;
       top:50%;
       width: 50/7.5vw;
       height: 50/7.5vw;
       transform: translateY(-50%);
       color: #ccc;
   }
}
</style>